import { EntityModel } from '@midwayjs/orm';
import { Column } from 'typeorm';
import { LoeeEntity } from '../../../comentity';

/**
 * 描述
 */
@EntityModel('label_sys')
export class LabelSysEntity extends LoeeEntity {
  @Column({ comment: '标签名称' })
  name: string;

  @Column({ comment: '标签类型', nullable: true })
  type: string;

  @Column({ comment: '父标签ID', type: 'bigint', nullable: true })
  parentId: number;

  @Column({
    comment: '类型 0：程序设计 1：机械原理 2：课程造型 3：内容标签',
    default: 0,
    type: 'tinyint',
  })
  system_type: number;

}
